<template>
	<view>
		<view class="head">
			<image src="../../static/images/arrow_left.png" mode="" @click="gose"></image>
			<view class="">意见反馈</view>
			<view class="f32" @click="tar">确定</view>
		</view>
		<view class="text"><textarea value="" placeholder="请输入反馈内容" v-model="text" /></view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			text: '',
		
		};
	},
	methods: {
		tar() {
			this.$ajax('api/v1.user/feedback', {
				content: this.text
			})
				.then(res => {
					setTimeout(() => {
						uni.navigateTo({
							url: '../my/setting'
						});
					}, 1500);
					uni.showToast({
						title:'感谢您的反馈',
						icon:'none'
					})
				})
				.catch(res => {
					console.log(Error);
				});
		},
		gose() {
			uni.navigateTo({
				url: '../my/setting'
			});
		}
	}
};
</script>

<style lang="scss">
page {
	background-color: #f7f4f8;
}
.head {
	box-sizing: border-box;
	line-height: 88rpx;
	background-color: #249af6;
	color: #ffffff;
	display: flex;
	padding: 60upx 30rpx 0 30upx;
	justify-content: space-between;
	font-size: 36rpx;
	font-family: PingFang SC;
	font-weight: 500;
	margin-bottom: 30rpx;
	image {
		width: 22rpx;
		height: 39rpx;
		margin-top: 25rpx;
	}
}
.text {
	height: 519rpx;
	background: rgba(255, 255, 255, 1);
	margin: 32rpx;
	padding: 29rpx;
}
.textarea {
	height: 100%;
}
</style>
